<h1><?php echo $title_for_layout = __d('lil_ads', 'Add/Edit Campaign', true); $this->set(compact('title_for_layout')); ?></h1>
<div class="form">
	<?php echo $this->Form->create('AdsCampaign');?>
	<fieldset>
		<?php
			echo $this->Form->input('id');
			echo $this->Form->input('title', array(
				'label' => __d('lil_ads', 'Title', true) . ':',
				'error' => __d('lil_ads', 'Title is required.', true)
			));
			echo $this->Form->input('priority', array(
				'type' => 'select', 
				'label'=> __d('lil_ads', 'Priority', true) . ':',
				
				'options' => array(
					1=>__d('lil_ads', 'low', true),
					2=>__d('lil_ads', 'medium', true),
					3=>__d('lil_ads', 'high', true)
				),
				'error'   => __d('lil_ads', 'Priority must be numeric 1-3.', true)
			));
			echo $this->Form->input('active', array('label' => __d('lil_ads', 'Active', true)));
		?>
	</fieldset>
	<fieldset>
		<legend><?php __d('lil_ads', 'Limits');?></legend>
		<?php
			echo $this->Form->input('limit_views', array(
				'label' => __d('lil_ads', 'Display cnt.', true).':',
				'error' => __d('lil_ads', 'Display count limit must be a number.', true)
			));
			echo $this->Form->input('limit_clicks', array(
				'label' => __d('lil_ads', 'Click count', true).':',
				'error' => __d('lil_ads', 'Click count limit must be a number.', true)
			));
			echo $this->Form->input('limit_start', array(
				'label'      => __d('lil_ads', 'Start date', true).':',
				'empty'      => true,
				'timeFormat' => 'NONE',
				'error'      => __d('lil_ads', 'Start date limit must be a date.', true)
			));
			echo $this->Form->input('limit_end', array(
				'label'      =>__d('lil_ads', 'End date', true).':',
				'empty'      => true,
				'timeFormat' => 'NONE',
				'error'      => __d('lil_ads', 'End date limit must be a date.', true)
			));
		?>
	</fieldset>
	<?php
		echo $this->Form->submit(__d('lil_ads', 'OK', true));
		echo $this->Form->end();
	?>
</div>